<template>
    <div>
        <p>ccc</p>
        <button @click='cc'>
            点击
        </button>
    </div>
</template>


<script>
import { c } from "../api/api.js";
import axios from 'axios';

export default {

    data() {
        return {
            uid:1,
        }
    },    
    methods: {
        cc:function(){
            var params = {
                uid:this.uid,
            };
            c(params).then(res => {
                console.log(this.uid)
                console.log(params.uid,"11111")
                console.log("发送测试信息")
                alert('发送了axios请求')
            })
        },


    },
}
</script>


<style>

</style>